package cn.deschen.search.index.adRegion;

import cn.deschen.common.config.cache.Cache;
import cn.deschen.search.index.IndexAware;
import cn.deschen.search.index.adKeyword.AdKeywordIndex;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author hanbin_chen
 * @Description 地区索引，二级索引
 * @DateTime 2021/6/16
 * @Version V1.0.0
 */
@Component
@EqualsAndHashCode
public class AdRegionIndex extends IndexAware<Long, AdRegionObject> {

    public static final String INDEX_TYPE = "REGION";

    @Autowired
    public AdRegionIndex(Cache<String, AdKeywordIndex> cache) {
        super(cache, INDEX_TYPE);
    }
}
